package com.example.demo.domain.equipment.repository;

import com.example.demo.domain.equipment.Plan;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface PlanRepository extends JpaRepository<Plan,Integer> {
    List<Plan> getAllByTicketIdIsNotNull();
    //返回该id对应的数据
    Plan findByTicketId(Integer id);

    List<Plan> getAllByPlanId(String planId);
}
